home *** CD-ROM | disk | FTP | other *** search
- Path: news.uni-jena.de!news
- From: mkt@isun04.inf.uni-jena.de (Tilo Koerbs)
- Newsgroups: comp.lang.c++
- Subject: Re: Visibility Restricted to Compiler
- Date: 1 Feb 1996 14:35:14 GMT
- Organization: Lehrstuhl fuer Rechnerarchitektur- und kommunikation, FSU Jena
- Message-ID: <4eqj32$na8@fsuj01.rz.uni-jena.de>
- References: <4eq8td$hpu@vixen.cso.uiuc.edu>
- Reply-To: mkt@isun04.inf.uni-jena.de
- NNTP-Posting-Host: isun07.inf.uni-jena.de
-
- In article hpu@vixen.cso.uiuc.edu, sjmccaug@prairienet.org (Scott J. McCaughrin) writes:
- >
- > Is a constructor still visibile to a C++ compiler if it is private? I
- > want a constructor invoked only by compiler, and not e.g. by some
- > user-defined 'new'.
-
- I think there is no way of expressing: the constructor may only invoked
- by the compiler. The user can easily write code that implicitly invokes
- the constructor.
- The other thing: The private constructor is still visible, but not
- accessable. And there is still no difference between
- an implicit and an explicit constructor call!
-
-
-
-
-